<!DOCTYPE html>
<html>
    <head>
        <title>字典管理-列表</title>
 		<#include "fsoft-common.ftl" />
    </head>
    <body>
        <div class="layui-fluid">
			<div class="layui-card">
				<div class="layui-card-body">
            		<div class="layui-row">
						<form class="layui-form" action="" lay-filter="fsoftForm" autocomplete="off">
							<div class="layui-inline layui-show-xs-block">
								<input class="layui-input" type="text" name="code" placeholder="字典编号精确搜索" autocomplete="off">
							</div>
							<div class="layui-inline layui-show-xs-block">
								<input class="layui-input" type="text" name="name" placeholder="字典名称模糊搜索" autocomplete="off">
							</div>
							<div class="layui-inline layui-show-xs-block">
								<button class="layui-btn layui-btn-normal" lay-submit lay-filter="sreach">
									<i class="layui-icon layui-icon-search"></i>搜索
								</button>
							</div>
						</form>
					</div>
            		<div class="layui-row">
						<table id="table" class="layui-table" lay-filter="tbs"></table>
					</div>
				</div>
            </div>
        </div> 
    </body>
    <#include "fsoft-common-foot.ftl" />
	<#--  工具条（table顶部）  -->
	<script type="text/html" id="sysdict-tbs-toolbar">
		<div class="layui-btn-container">
			<div class="layui-btn-group">
				<@perms value="sys:dict:save">
				<button class="layui-btn layui-btn-sm layui-btn-normal" lay-event="add">
					<i class="fa fa-plus-circle" aria-hidden="true" ></i> 新增
				</button>
				</@perms>
				<@perms value="sys:dict:remove">
				<button class="layui-btn layui-btn-sm layui-btn-danger" lay-event="removeBatch">
					<i class="fa fa-trash" aria-hidden="true"></i>删除
				</button>
				</@perms>
			</div>
			<div class="layui-btn-group">
				<@perms value="sys:dict:enable">
				<button class="layui-btn layui-btn-sm layui-btn-normal" lay-event="enable">
					<i class="fa fa-play-circle" aria-hidden="true" ></i> 启用
				</button>
				</@perms>
				<@perms value="sys:dict:disable">
				<button class="layui-btn layui-btn-sm layui-btn-normal" lay-event="disable">
					<i class="fa fa-minus-circle" aria-hidden="true" ></i> 禁用
				</button>
				</@perms>
			</div>
		</div>
	</script>
	<#--  工具栏（table列）  -->
	<script type="text/html" id="sysdict-tbs">
		<div class="layui-btn-container">
			<@perms value="sys:dict:setting">
			<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="setting">
				<i class="fa fa-info-circle" aria-hidden="true" ></i> 设置
			</a>
			</@perms>
			<@perms value="sys:dict:edit">
			<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="edit">
				<i class="fa fa-edit" aria-hidden="true" ></i> 编辑
			</a>
			</@perms>
			<@perms value="sys:dict:remove">
			<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">
				<i class="fa fa-trash" aria-hidden="true" ></i> 删除
			</a>
			</@perms>
		</div>
	</script>
	<script type="text/html" id="switchStatus">
	  	<input type="checkbox" name="status" value="{{d.id}}" lay-skin="switch" lay-text="正常|禁用" lay-filter="status" disabled="disabled" {{ d.status == 1 ? 'checked' : '' }}>
	</script>
	<script type="text/javascript" src="${request.contextPath}/static/fsoft-web/dict/sysdict-list.js?v=201911"></script>
</html>